package org.xuyuji.web.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnFactory {
	private ConnFactory(){}
	
	public static Connection getConn() throws SQLException, ClassNotFoundException{
		Class.forName("org.gjt.mm.mysql.Driver");
		Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/webdemo", "root", "");
		return conn;
	}
}
